package com.cw.entity;

import com.alibaba.excel.annotation.*;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.*;
import io.swagger.annotations.*;
import java.io.*;
import java.time.*;
import lombok.*;
import lombok.experimental.*;

/**
 * @author smq
 * @since 2021-04-27
 */
@ApiModel(value = "床位")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("BED")
public class Bed implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId("id")
    private String id;

    @ApiModelProperty(value = "院区编码")
    @ExcelProperty(value = "DISTRICT_CODE")
    @TableField("DISTRICT_CODE")
    private String districtCode;

    @ApiModelProperty(value = "院区名称")
    @ExcelProperty(value = "DISTRICT_NAME")
    @TableField("DISTRICT_NAME")
    private String districtName;

    @ApiModelProperty(value = "病区编码")
    @ExcelProperty(value = "AREA_CODE")
    @TableField("AREA_CODE")
        private String areaCode;

    @ApiModelProperty(value = "病区名称")
    @ExcelProperty(value = "AREA_NAME")
    @TableField("AREA_NAME")
        private String areaName;

    @ApiModelProperty(value = "科室编码")
    @ExcelProperty(value = "DEPT_CODE")
    @TableField("DEPT_CODE")
        private String deptCode;

    @ApiModelProperty(value = "科室名称")
    @ExcelProperty(value = "DEPT_NAME")
    @TableField("DEPT_NAME")
        private String deptName;

    @ApiModelProperty(value = "房间编码")
    @ExcelProperty(value = "ROOM_CODE")
    @TableField("ROOM_CODE")
        private String roomCode;

    @ApiModelProperty(value = "房间名称")
    @ExcelProperty(value = "ROOM_NAME")
    @TableField("ROOM_NAME")
        private String roomName;

    @ApiModelProperty(value = "床位类型编码（集管、非集管） 0:集管 1:非集管")
    @ExcelProperty(value = "BED_TYPE_CODE")
    @TableField("BED_TYPE_CODE")
        private String bedTypeCode;

    @ApiModelProperty(value = "床位类型名称（集管、非集管）")
    @ExcelProperty(value = "BED_TYPE_NAME")
    @TableField("BED_TYPE_NAME")
        private String bedTypeName;

    @ApiModelProperty(value = "床位地理位置")
    @ExcelProperty(value = "BED_LOCATION")
    @TableField("BED_LOCATION")
        private String bedLocation;

    @ApiModelProperty(value = "是否空床编码 0:空 1:不空")
    @ExcelProperty(value = "IS_EMPTY_CODE")
    @TableField("IS_EMPTY_CODE")
        private String isEmptyCode;

    @ApiModelProperty(value = "是否空床名称")
    @ExcelProperty(value = "IS_EMPTY_NAME")
    @TableField("IS_EMPTY_NAME")
        private String isEmptyName;

    @ApiModelProperty(value = "床位编码")
    @ExcelProperty(value = "BED_CODE")
    @TableField("BED_CODE")
        private String bedCode;

    @ApiModelProperty(value = "床位名称")
    @ExcelProperty(value = "BED_NAME")
    @TableField("BED_NAME")
        private String bedName;

    @ApiModelProperty(value = "创建时间")
    @ExcelProperty(value = "CREATE_TIME")
    @TableField("CREATE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建人")
    @ExcelProperty(value = "CREATE_BY")
    @TableField("CREATE_BY")
    private String createBy;

    @ApiModelProperty(value = "删除 0:未删除 1:已删除")
    @ExcelProperty(value = "DELETE_FLAG")
    @TableField("DELETE_FLAG")
    private String deleteFlag;


    @TableField(exist = false)
    @ApiModelProperty("病人姓名")
    private String patientName;

    @TableField(exist = false)
    @ApiModelProperty(value = "his是否确认 0:确认 1:不确认")
    private String isHisConfirm;
}
